<?php
/**
 * dbfront
 * (c) 2010-2013 Stephen Adkins <spadkins@gmail.com>
 * This software began development in 2010.
 * It is based on code dating from 1999.
 *
 * License: GPL 2.0
 * The contents of this file may be used under the terms of
 * the GNU General Public License Version 2 or later (the "GPL").
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * Li.
 * */

/**
 * FILE: api.php
 * This implements a REST service API, based on the "Restful Objects" specification, but with lots more leeway.
 * The following are the parameters recognized.
 *     op              - 'authspec', 'auth', 'authz'          (required on all queries)
 *     u               - the username                     (required on all queries)
 *     auth_token      - the authentication token         (required on all queries except 'authspec')
 *     session_dttm    - the start dttm of the session    (required on all queries except 'authspec')
 *     neat            - used for debugging, this puts extra newlines
 * */

global $context, $options;
require('frontstart.inc.php');
ob_start();
$rest = new SimpleRest();
$rest->process();
$context->endRequest();
